package com.jwdf.uda.event;

import com.jwdf.uda.ui.fragment.progress.TaskList;
import com.jwdf.uda.utils.EventBusUtil;

/**
 * Created by Administrator on 2016/10/27.
 */
public class LongTaskEvent implements EventBusUtil.IEvent {
    public static final int LONG_TASK_QUESTION_START = 0x1;
    public static final int LONG_TASK_QUESTION_END = 0x2;
    public static final int LONG_TASK_QUESTION_SHOW = 0x3;
    public static final int LONG_TASK_QUESTION_ERROR = 0x4;
    public static final int LONG_TASK_QUESTION_COMPLETE = 0x5;
    public static final int LONG_TASK_QUESTION_CLOSE = 0x6;
    public static final int LONG_TASK_CLICK = 0x7;
    public static final int LONG_TASK_ANSWER_COMPLETE=0x8;
    public static final int LONG_TASK_ANSWER_ERROR=0x9;
    public static final int LONG_TASK_FINISH=0x10;
    public static final int LONG_TASK_QUESTION_EDIT_COMPLETE=0x11;
    public static final int LONG_TASK_QUESTION_EDIT_ERROR=0x12;
    public static final int LONG_TASK_ANSWER_EDIT_COMPLETE=0x13;
    public static final int LONG_TASK_ANSWER_EDIT_ERROR=0x14;
    TaskList taskListList;
    double progress;
    int event;
    int type;
    int location;
    String mName;

    public LongTaskEvent(int event) {
        this.event = event;
    }

    public LongTaskEvent(int event, TaskList taskLists) {
        this.event = event;
        this.taskListList = taskLists;
    }

    public LongTaskEvent(int event, double progress) {
        this.event = event;
        this.progress = progress;
    }

    public LongTaskEvent(int event, double progress, int type) {
        this.event = event;
        this.progress = progress;
        this.type = type;
    }

    public LongTaskEvent(int event , int location){
        this.event=event;
        this.location=location;
    }

    public LongTaskEvent(int event,String name){
        this.event=event;
        this.mName=name;
    }

    public TaskList getTaskListList() {
        return taskListList;
    }

    public int getEvent() {
        return event;
    }

    public double getProgress() {
        return progress;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLocation() {
        return location;
    }

    public String getmName() {
        return mName;
    }
}
